#ifndef __KERNEL_IDT_GDT_H_
#define __KERNEL_IDT_GDT_H_

#include "types.h"

typedef struct
{
  int16_t limit_low;
  int16_t base_low;

  int8_t base_mid;
  int8_t access_right;
  int8_t limit_high;
  int8_t base_high;
} gdt_t;

typedef struct
{
  int16_t offset_low;
  int16_t selector;

  int8_t dw_count;
  int8_t access_right;

  int16_t offset_high;
} idt_t;

void init_gdt_idt(void);

#endif // !__KERNEL_IDT_GDT_H_
